// 模型管理
const modelerMode = (request) => {
  return {
    // 审批
    act_task_checkNew(query = {}) {
      return request('/act/task/checkNew', {
        method: 'post',
        data: query
      })
    },
    act_model_page(query = {}) {
      return request('/act/model', {
        method: 'get',
        params: query
      })
    },
    // 新增
    act_model_insert(query = {}) {
      return request('/act/model/insert', {
        method: 'post',
        data: query
      })
    },
    act_model_delete(id) {
      return request(`/act/model/${id}`, {
        method: 'delete'
      })
    },
    // 部署
    act_model_deploy(id) {
      return request(`/act/model/deploy/${id}`, {
        method: 'post'
      })
    }
  }
}
export default ({ request }: any) => ({
  ...modelerMode(request)
})
